<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="设置参与人员" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script src="/js/popup_ext.js"></script>
<script language="javascript">
	function doNew(){
		var url="/base/StafferMainForSelect.ihtm?type=MULTI";
		ShowIframe("选择员工",url,800,500,"doNewCallBack();");
	}
	function doNewCallBack(){
		if(popRetVal!=null){
			var str="";
			for(i=0;i<popRetVal.length;i++){
				if(str!=""){
					str=str+";";
				}
				str=str+popRetVal[i][0];
			}
			window.location="/base/EstCommReceiverAdd.ihtm?comm_id=${commId}&tmp_code=${tmpCode}&id_str="+str;
		}
	}
	function doDelete(id){
		ShowConfirm('确认框','确定删除吗？',300,80,"doDelAct("+id+")");
	}
	function doDelAct(id){
		if(popRetVal!=null){
			window.location="/base/EstCommReceiverDel.ihtm?id="+id+"&comm_id=${commId}&tmp_code=${tmpCode}";
		}
	}
	function doCancel(){
		parent.ClosePop();
	}
</script>
</head>
<body oncontextmenu="return false" class="sheet" style="text-align:center;">
<div class="sheet-main" style="width:300px;text-align:left;margin:auto;">
  <div class="sheet-top">
    <div class="content">
      <h2>设置参与人员</h2>
      <p></p>
    </div>
  </div>
  <div class="sheet-list">
    <div class="search-business">
	    <div class="add_content"> 	
	    	 <div align="right"><input type="button" class="buttom search-add" value=" 新 增" onClick="doNew();"></div>
	     </div>
		 <%@include file="../inc/AlertMsg.jsp"%>	     
	     <div class="table-list">
	        <table width="100%">
	          <tr>
					<th width="80">姓名</th>
					<th width="100">手机</th>
					<th >操作</th>
				</tr>
				<c:forEach var="item" items="${list}">
				<tr>
					<td >${item[1].stafferName}</td>
					<td >${item[1].mobile}</td>
					<td >
						<a href="javascript:doDelete('${item[0].id}');">删除</a>
					</td>
				</tr>
				</c:forEach>
			</table>
	      </div>  
	   </div>  
  </div>
  <div class="blank12"></blank>
</div>
</body>
</html>